﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    Inherits="Nivdal.CreateForumThread" Title="" StylesheetTheme="SkinFile" CodeBehind="CreateForumThread.aspx.cs" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Assembly="obout_Flyout2_NET" Namespace="OboutInc.Flyout2" TagPrefix="cc1" %>

<asp:Content ID="PageNameContent" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel1" runat="server" Text='<%# Resources.Resource.Global_Forum+ ">>"%>'
        CssClass="PageNameContentStyle"></asp:Label>
    <asp:Label ID="PageNameLabel2" runat="server" CssClass="PageNameContentStyle"></asp:Label>
    <asp:Label ID="PageNameLabel3" runat="server" Text="<%$ Resources:Resource, CreateForumThread_PageNameLabel3 %>"
        CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="basic_element">
    <div class="red_title">
       <asp:LinkButton ID="ForumNameLinkbutton" runat="server" CssClass="white_title"></asp:LinkButton>
    </div>
    <div class="padding5">

        <asp:Label ID="MessageLabel" runat="server" Text=""></asp:Label>
        <br />
        <asp:UpdatePanel ID="updatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:TextBox ID="ThreadNameTextBox" runat="server" MaxLength="256"></asp:TextBox>
                <asp:RequiredFieldValidator ID="ThreadNameRequiredFieldValidator" runat="server"
                    ErrorMessage="<%$ Resources:Resource, CreateForumThread_ThreadNameRequiredFieldValidatorErrorMessage %>"
                    ControlToValidate="ThreadNameTextBox" SetFocusOnError="True" ValidationGroup="ThreadForum"></asp:RequiredFieldValidator>
                <%--Display="None"--%>
                <%--<ajaxToolkit:ValidatorCalloutExtender ID="ThreadNameRequiredFieldExtender"  CssClass="customCalloutStyle"
                      WarningIconImageUrl="Images/001_111.png" CloseImageUrl="Images/001_051.png" PopupPosition="TopRight" runat="server" 
                      TargetControlID="ThreadNameRequiredFieldValidator"> </ajaxToolkit:ValidatorCalloutExtender> --%>
                <ajaxToolkit:TextBoxWatermarkExtender ID="TBWE2" runat="server" TargetControlID="ThreadNameTextBox"
                    WatermarkText="<%$ Resources:Resource, CreateForumThread_TBWE2WatermarkText %>"
                    WatermarkCssClass="watermarked" />
                <br />
                <br />
                <CustomControls:TextArea ID="Threadeditor" runat="server" MaxLength="3500" TextMode="MultiLine"
                    Rows="3" Height="150px" Width="500"></CustomControls:TextArea>
                <%--<asp:Image ID="HelpImage" runat="server" ImageUrl="~/Images/question.gif" AlternateText="help" />
                <cc1:Flyout ID="Help" runat="server" NoneEffect="true" AttachTo="HelpImage">
                    <div class="ToolTipStyle">
                        <asp:Label ID="TextHelpLabel" runat="server"></asp:Label>
                    </div>
                </cc1:Flyout>--%>

                <br />
                <asp:Label ID="PreviewLabel" runat="server" CssClass="HtmlPreview" Text=""></asp:Label>
                <br />
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:Button runat="server" Text="<%$ Resources:Resource, Forum_OpenThread %>" ID="OpenThread"
            OnClick="OpenThread_Click" ValidationGroup="ThreadForum" CssClass="ForumButtonWithIconStyle" />
        &nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button2" OnClick="Button2_Click" runat="server" Text="<%$ Resources:Resource, Global_Preview %>"
            CssClass="GreySmallButtonStyle" />
    </div>
    </div>

</asp:Content>
